﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tools;

namespace EntityPet
{
    /// <summary>
    /// 寄养宠物
    /// </summary>
    public class Pet_foster
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; } = Guid.NewGuid();
        /// <summary>
        /// 寄养人
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? FosterPeople { get; set; }
        /// <summary>
        /// 寄养人电话
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? FosterNumber { get; set; }

        /// <summary>
        /// 宠物种类
        /// </summary>
        [Required]
        [StringLength(50)]
        public Pets Pets { get; set; }

        /// <summary>
        /// 宠物性别
        /// </summary>
        [Required]
        public Gender Gender { get; set; }
        /// <summary>
        /// 寄养环境
        /// </summary>
        [StringLength(50)]
        public string? PetEnvironment { get; set; }
        /// <summary>
        /// 宠物状态
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? PetStatus { get; set; }
        /// <summary>
        /// 寄养协议
        /// </summary>
        [Required]
        public bool FosterAgreement { get; set; }
        /// <summary>
        /// 寄养时间
        /// </summary>
        [Required]
        public DateTime FosterTime { get; set; }
        /// <summary>
        /// 寄养结束
        /// </summary>
        [Required]
        public DateTime EndTime { get; set; }
    }
}
